Component({
  behaviors: [],
  properties: {
    cateName: {
      type: String,
      value: ''
    },
    cateIcon: {
      type: String,
      value: 'icon-weizhi'
    }
  },
  data: {

  },
  lifetimes: {
    created () {

    },
    attached () {

    },
    moved () {

    },
    detached () {

    },
  },
  methods: {
    handleClick (e) {
      let cateName = e.currentTarget.dataset.tapName
      // 将点击事件通过 子传父 将事件发过到父组件上
      this.triggerEvent('cateItemEvent', { cateName })
    }
  },
});